<%--
    Document   : index
    Created on : 26/05/2012, 10:33:03
    Author     : Daniel Lucas
--%>

<%@page import="javassist.bytecode.stackmap.BasicBlock.Catch"%>
<%@page import="br.com.voefacil.modelo.Voo"%>
<%@page import="java.beans.Statement"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.CallableStatement"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Finalizar Compra</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Site de LPBD">
        <meta name="author" content="Daniel Lucas">
        <!-- Le styles -->
        <link href="resources/css/bootstrap.css" rel="stylesheet">
        <link href="resources/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="resources/css/datepicker.css" rel="stylesheet">
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <!-- Le fav and touch icons -->
    </head>
    <body>

        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="#"> VoeFácil 1.0</a>

                    <div class="nav-collapse">
                        <ul class="nav">
                            <li><a href="index.jsp">Home</a></li>
                            <li><a href="empresa.jsp">Quem Somos</a></li>
                            <li><a href="cancela.jsp">Cancelar Passagem</a></li>
                            <li><a href="contato.jsp">Contato</a></li>
                            <li><a href="Criadores.jsp">Desenvolvedores</a></li>
                        </ul>
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>

        <div class="container-fluid">
            <div class="row">
                <div class="span3">
                    <div class="well sidebar-nav">
                        <ul class="nav nav-list">
                            <li class="nav-header">__________________</li>
                            <li class="nav-header">Menu</li>
                            <li><a href="index.jsp">Home</a></li>
                            <li><a href="empresa.jsp">Quem Somos</a></li>
                            <li><a href="cancela.jsp">Cancelar Passagem</a></li>
                            <li><a href="contato.jsp">Contato</a></li>

                        </ul>
                    </div><!--/.well -->
                </div><!--/span-->

                <div class="container">
                    <div class="row">
                        <div class="span8">
                            <div class="alert alert-success">
                                Lembre-se de apresentar seus documentos originais na hora do embarque!
                            </div>                            
                            <form name="form1" class="form-horizontal" id="registerHere" method='get' action="finaliza.jsp" onSubmit="return verificacao2()">
                                <fieldset class="well" style="width: 500px;background-color: azure">
                                    <legend><b style="padding-top: 10px">Finalizar Compra</b></legend>
                                    <div class="control-group">

                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="nome">*Nome completo</label>
                                        <div class="controls">
                                            <input type="text" class="input-xlarge" id="nome" name="nome" rel="popover" data-content="Digite seu nome completo." data-original-title="Nome Completo" placeholder="Nome completo sem abreviações...">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="data">*Data de Nascimento</label>
                                        <div class="controls">
                                            <input type="text"  class="input-xlarge" id="data" name="data" onKeyPress="MascaraData(form1.data);"  rel="popover" data-content="Digite a data de seu nascimento." data-original-title="Data de Nascimento" placeholder="ex.: 28/07/1914" maxlength="10" onBlur="validaDat(this,this.value)">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="cpf">*CPF</label>
                                        <div class="controls">
                                            <input type="text" class="input-xlarge" id="cpf" name="cpf" rel="popover" data-content="Digite o número do seu CPF." data-original-title="CPF" placeholder="cpf do comprador..." onblur="ValidarCPF(form1.cpf)" maxlength="14" onkeypress="MascaraCPF(form1.cpf)">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="telefone">*Telefone</label>
                                        <div class="controls">
                                            <input type="text" class="input-xlarge" id="telefone" name="telefone" rel="popover" data-content="Digite seu número de telefone." data-original-title="telefone" placeholder="número de telefone para contato..." onKeyPress="MascaraTelefone(form1.telefone);"maxlength="14" onBlur="ValidaTelefone(form1.telefone)">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="email">*E-mail</label>
                                        <div class="controls">
                                            <input type="text" class="input-xlarge" id="email" name="email" rel="popover" data-content="Digite seu endereço de e-mail." data-original-title="email" placeholder="endereço de e-mail para contato..." onblur="ValidaEmail()">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="emailr">*Repita seu E-mail</label>
                                        <div class="controls">
                                            <input type="text" class="input-xlarge" id="emailr" name="emailr" rel="popover" data-content="Repita seu endereço de e-mail." data-original-title="emailr" placeholder="repita seu endereço de e-mail para contato...">
                                        </div>
                                    </div>
                                    <fieldset class="well" style="width: 400px; background-color: lightcyan" >
                                        <legend>Tipo de Pagamento</legend>                                        
                                        <div class="control-group">
                                            <label class="control-label" for="input01">Boleto</label>
                                            <div class="controls">
                                                <input name="tipopag" value="Boleto" type="radio" onclick="" checked/>
                                            </div>
                                        </div>
                                        <div class="control-group">
                                            <label class="control-label" for="input01">Cartão</label>
                                            <div class="controls">
                                                <input disabled="disabled" name="tipopag" value="Cartao" type="radio" onclick=""/>
                                            </div>
                                        </div>
                                        <input type="hidden" name="id" value="<%= request.getParameter("id")%>"/>
                                        <input type="hidden" name="valor" value="<%= request.getParameter("valor")%>"/>
                                        <div class="control-group">
                                            <label class="control-label" for="input01"></label>
                                            <div class="controls">
                                                <button type="submit" class="btn btn-success" >Comprar</button> &nbsp;&nbsp;
                                                <button type="reset" class="btn btn-danger">Limpar</button>
                                            </div>
                                        </div>
                                    </fieldset>
                                </fieldset>
                            </form>
                        </div>

                    </div>
                </div>

            </div></div>
        <!-- </div><!--/row-->
        <!--</div><!--/span-->
        <!--</div><!--/row-->
        <hr>
    <footer>
        <div class="container">
            <p>&copy; VoeFacil</p>
        </div>
    </footer>
    <!--</div><!--/.fluid-container-->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="resources/javascript/jquery.js"></script>
    <script src="resources/javascript/bootstrap-transition.js"></script>
    <script src="resources/javascript/bootstrap-alert.js"></script>
    <script src="resources/javascript/bootstrap-modal.js"></script>
    <script src="resources/javascript/bootstrap-dropdown.js"></script>
    <script src="resources/javascript/bootstrap-scrollspy.js"></script>
    <script src="resources/javascript/bootstrap-datepicker.js"></script>
    <script src="resources/javascript/bootstrap-tab.js"></script>
    <script src="resources/javascript/bootstrap-tooltip.js"></script>
    <script src="resources/javascript/MascaraValidacao.js"></script>
    <script src="resources/javascript/bootstrap-popover.js"></script>
    <script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
</body>
</html>
